package com.xrui.hbase;

import java.io.IOException;

/**
 * Factory for Table instances.
 */
public interface TableFactory {
    /**
     * Opens a Table by name.
     * <p>
     * <p>Clients must take care to release the Table instance when finished.</p>
     *
     * @param tableName Name of the table to open.
     * @return the opened HBase table.
     * @throws IOException on I/O error.
     */
    Table openTable(String tableName) throws IOException;
}
